<template>
	<view class="body">
		<yyyddyyd-freetimetables @clickkbdata="clickkb" :kbJs="kbJs" :kbList="kbList">
			<template :slot="'popup'">
				<view class="">
					<view style="display: flex;justify-content: center;align-items: center;">
						<button type="primary" size="mini" style="margin-bottom: 50px;" @click="upics()">课程录入</button>
					</view>
				</view>
			</template>
		</yyyddyyd-freetimetables>
	</view>
</template>

<script>
export default {
	data() {
		return {
			kbJs:[{
				kssj: '08:00',//课程开始时间
				jssj: '08:45',//课程结束时间
				style: 'background-color: #FFE4E1;'},//这个时间段的底色
				{kssj: '08:55',
				jssj: '09:40',
				style: 'background-color:#FF7F50;'},
				{kssj: '09:50',
				jssj: '10:35',
				style: 'background-color:#FFE4E1;'},
				{kssj: '10:45',
				jssj: '11:30',
				style: 'background-color:#FF7F50;'},
				{kssj: '14:00',
				jssj: '15:45',
				style: 'background-color:#FFE4E1;'},
				{kssj: '15:55',
				jssj: '16:40',
				style: 'background-color:#FF7F50;'},
				{kssj: '16:50',
				jssj: '17:35',
				style: 'background-color:#FFE4E1;'},
				{kssj: '17:45',
				jssj: '18:30',
				style: 'background-color:#FF7F50;'}
			],
			kbList:[
				{	
					"kcmc": "高等数学",//课程名称
					"kcxz": "必修",//课程性质
					"color": "#000000",//课程默认颜色
					"jsxx": "陈九",//课程老师
					"kbData": //课程授课具体时间、地点安排
					[{
						"jxdd": "教室103",//课程教室
						"week": 1,//课程上课星期，周日为0，周一为1依次顺延
						"jc": [1, 2],//第几节课
						"jxz": [2, 4, 5, 7, 8, 13, 14, 15],//课程第几周上课
					}]
				},
				{	
					"kcmc": "高等数学",//课程名称
					"kcxz": "必修",//课程性质
					"color": "#000000",//课程默认颜色
					"jsxx": "陈九",//课程老师
					"kbData": //课程授课具体时间、地点安排
					[{
						"jxdd": "教室103",//课程教室
						"week": 1,//课程上课星期，周日为0，周一为1依次顺延
						"jc": [1],//第几节课
						"jxz": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],//课程第几周上课
					},{
						"jxdd": "教室105",//课程教室
						"week": 1,//课程上课星期，周日为0，周一为1依次顺延
						"jc": [2],//第几节课
						"jxz": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],//课程第几周上课
					}]
				},

			]
		}
	},
	onLoad() {

	},
	onShow() {

	},
	methods: {
		upics(){
			uni.navigateTo({
				url:'./list'
			})
		},
		clickkb(e){
			console.log(e)
			// uni.navigateTo({
			// 	url:'./list'
			// })
		}
	},
}
</script>

<style>
.body {
	width: 100vw;
	/* overflow: hidden; */
}
</style>